package org.alanlau.zuul.config;

import org.alanlau.zuul.filter.ErrorFilter;
import org.alanlau.zuul.filter.IpFilter;
import org.alanlau.zuul.filter.TestErrorFilter;
import org.aspectj.weaver.ast.Test;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author alan
 * @version 1.0
 * @date 2020/9/19 14:37
 */
@Configuration
public class FilterConfig {

    @Bean
    public IpFilter ipFilter() {
        return new IpFilter();
    }

    @Bean
    public TestErrorFilter testErrorFilter() {
        return new TestErrorFilter();
    }

    @Bean
    public ErrorFilter errorFilter() {
        return new ErrorFilter();
    }
}
